package com.qd.pay.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cdqidi.db.BaseService;
import com.qd.pay.mapper.OrderRefundReportMapper;
import com.qd.pay.model.OrderRefundReport;
import org.springframework.stereotype.Repository;

/**
 * @author sjk
 */
@Repository
public class OrderRefundReportRepository extends BaseService<OrderRefundReportMapper, OrderRefundReport> {

    public boolean isExists(String rid) {
        return getBaseMapper().exists(new QueryWrapper<OrderRefundReport>().eq("rid", rid));
    }

    public Integer refundTotal(String orderId, String refundStatus) {
        return baseMapper.refundTotal(orderId, refundStatus);
    }
}